Problem Note 55336: A CONTINUE statement in a DO UNTIL loop within PROC DS2 causes an infinite loop
Using a CONTINUE statement inside a DO UNTIL loop with PROC DS2 causes an infinite loop. The example code on the Full Code tab illustrates the problem.
There is currently no circumvention for this problem other than removing the CONTINUE statement.
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Linux for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
HP-UX IPF | 9.4 TS1M2 | 9.4 TS1M3 |
64-bit Enabled Solaris | 9.4 TS1M2 | 9.4 TS1M3 |
64-bit Enabled HP-UX | 9.4 TS1M2 | 9.4 TS1M3 |
64-bit Enabled AIX | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Ultimate 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Professional 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Home Premium 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Windows 7 Enterprise 32 bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Std | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 R2 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows Server 2008 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Pro | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft® Windows® for x64 | 9.4 TS1M2 | 9.4 TS1M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.4 TS1M2 | |
Z64 | 9.4 TS1M2 | 9.4 TS1M3 |
z/OS | 9.4 TS1M2 | 9.4 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
This code illustrates the infinite loop that occurs when the CONTINUE statement is used within a DO UNTIL loop with PROC DS2.
proc ds2;
data _null_;
method init();
do until (1);
put 'loop';
continue;
end;
end;
enddata;
run;
quit;
/* The SAS log fills up with this until the program is stopped */
loop
loop
loop
loop
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2015-04-02 14:33:27 |
Date Created: | 2015-03-06 16:05:31 |